package homework;


import java.util.Scanner;

public class Java语言基础2 {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);//输入流实例
		System.out.println("英语成绩:");
		double English = sc.nextDouble();//赋值
		System.out.println("语文成绩:");
		double Chinese = sc.nextDouble();
		System.out.println("数学成绩:");
		double math = sc.nextDouble();
		
		double total=English+Chinese+math;
		double avarage=total/3;
		System.out.println("总成绩为："+total+"平均成绩为："+avarage);
		
	}

}
//OutputStream
//InputStread
//FileInputStread